import { Component } from '@angular/core';
import { NzImageModule } from 'ng-zorro-antd/image';

@Component({
  selector: 'app-image-fallback',
  standalone: true,
  imports: [NzImageModule],
  template: `
    <p class="demo">
      <img
        nz-image
        nzSrc="/image-no-exists.png"
        style="width: 200px"
        nzFallback="/empty.png"
      />
    </p>
  `,
  styles: ``,
})
export class ImageFallbackComponent {}
